package xs.szw.service.model.pojo.sys;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 系统访问记录
 * @author asus
 * @TableName sys_login_log
 */
@Schema(description = "系统访问记录")
@TableName(value ="sys_login_log")
@Data
public class LoginLog implements Serializable {
    /**
     * 访问ID
     */
    @Schema(description = "访问ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户账号
     */
    @Schema(description = "用户账号")
    @TableField(value = "username")
    private String username;

    /**
     * 登录IP地址
     */
    @Schema(description = "登录IP地址")
    @TableField(value = "ipaddr")
    private String ipaddr;

    /**
     * 登录状态（0成功 1失败）
     */
    @Schema(description = "登录状态（0成功 1失败）")
    @TableField(value = "status")
    private Integer status;

    /**
     * 提示信息
     */
    @Schema(description = "提示信息")
    @TableField(value = "msg")
    private String msg;

    /**
     * 访问时间
     */
    @Schema(description = "访问时间")
    @TableField(value = "access_time")
    private Date accessTime;

    /**
     * 
     */
    @Schema(description = "")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @Schema(description = "")
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    @Schema(description = "删除标记（0:不可用 1:可用）")
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}